package xrz.cuanbao.adapters;

import xrz.cuanbao.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.xrz.sxm.base.AdapterBase;

public class Adapter_PersionLv extends AdapterBase<String> {
	private Context ctx;

	public Adapter_PersionLv(Context ctx) {
		super(ctx);
		this.ctx = ctx;
	}

	@Override
	protected View getExView(int position, View view, ViewGroup parent) {
		if (view == null)
			view = LayoutInflater.from(ctx).inflate(R.layout.item_mine, null);
		view.setBackgroundResource(R.drawable.selector_message);
		TextView text = (TextView) view.findViewById(R.id.tv_name);
		text.setText(getList().get(position) + "");
		return view;
	}

}
